import request from "../utils/request";

import { chaCheRequest } from "@/utils/utils";
const baseURL = import.meta.env.VITE_NODE_API_URL;
// 查询歌词详情
export function getJingWen(id) {
  return request({
    baseURL: baseURL,
    url: `/book?id=${id}`,
    // url: `/start/lyric/lyric/${id}`,
    method: "get",
  });
}

export const chaCheGetJinWen = (id) => {
  return chaCheRequest(() => getJingWen(id), {
    key: `get_jing_wen_${id}`,
    time: 1000,
  });
};

export function search(id) {
  return request({
    url: `/no-auth/bible/search?query=${id}`,
    method: "get",
  });
}

export function feachSearch() {}
